<template>
  <uni-nav-bar fixed="true" title="我的婚礼问卷" statusBar="true" :border="false" left-icon="left"
    @clickLeft="back"></uni-nav-bar>
  <div class="gap"></div>
  <my-survey-component questionnaire-list-to-show="received"></my-survey-component>
</template>

<script lang="ts" setup>
import { back } from "@/utils/navigate";
import MySurveyComponent from "@/components/my-survey-component.vue";
import { onShareAppMessage } from "@dcloudio/uni-app";
import { shareQuestionnaire } from "@/utils/others";
import { useUser } from "@/stores/user-store";

const userStore = useUser()
const { userInfo } = userStore

onShareAppMessage((res) => {
  return shareQuestionnaire(res, userInfo.name, userInfo.id)
})
</script>

<style lang="scss" scoped>
.gap {
  width: 100vw;
  height: 20px;
}
</style>
